@extends('prelist')
@section('left')
@parent
@endsection
@section('right')
    
<div class="crumb-wrap">
    <div class="crumb-list"><i class="icon-font"></i><a href="/prelist">店铺操作</a><span class="crumb-step">&gt;</span><span class="crumb-name">地区管理</span></div>
</div>

<div class="result-wrap">
    <form name="myform" id="myform" method="post">
        <div class="result-content">
            <table class="result-tab" width="100%">
                <tr>
                    <th>编号</th>
                    <th>地区</th>
                    <th>配送区</th>
                    <th>操作</th>
                </tr>
                @foreach($areas as $a)
                <tr>
                    <td>{{$a->aid}}</td>
                    <td>{{$a->area}}</td>
                    <td>{{$a->title}}</td>
                    <td>
                        <a class="link-update" href="{{url('editarea',[$a->aid])}}">修改</a>
                        <a class="link-del" href="{{url('delarea',[$a->aid])}}">删除</a>
                    </td>
                </tr>
                @endforeach
            </table>

            <div class="list-page">
          {!!$areas->render()!!}
            </div>
        </div>
    </form>
</div>
@endsection
